package com.rs.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rs.data.entity.CoreResrcFile;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 公用查询Mapper
 */
public interface CommonSearchMapper extends BaseMapper<CoreResrcFile> {

    /**
     * 根据表名查询
     * @param tableName 表名
     * @return Integer
     */
    Integer selectCountByTableName(@Param("tableName") String tableName);

    /**
     * 执行自定义动态sql
     * @param dynSql 动态sql
     */
    @MapKey("")
    List<Map<String, Object>> divSql(@Param("dynSql") String dynSql);
}
